imonit_client.php
This is the client-side library required for using the i-mon-it service. There are four files that need to be plced on your web servers: 1. imonit_client.php: This is the core requirement holding the logic and required methods 1. imonit_client_lib.php: 1. imonit_client.inc; This is a helperfile, which is loading the client libary and the client side libary into your web application.
imonit.token This is the token file identifying your webappliction. This is individual for each of your web applications monitored by the i-mon-it service.
This library contains several static functions, which make remote calls to the i-mon-it server.In order to use the i-mon-it micro services you need to include this library and imonit_client_lib.php into every page and class you want to monitor with the i-mon-it service. In order to use the services you need to call the centrali-mon-it Saas micro services. Below you find the explanation how to do this:
Tags
Table of Contents
Classes
- imonit_client
- This is the implementation of the client-side class to use the i-mon-it service.
Constants
- checktoken = \listener . '/checktoken.php'
- URL for the verifytoken service
- count = \listener . 'count.php'
- URL for the ecount service.
- end = \listener . 'end.php'
- URL for the end service.
- endpage = \listener . '/endpage.php'
- URL for the endpage service.
- imonit_server = 'server.i-mon-it.de'
- itoken = 'token'
- This is the name of the session variable holding information about the token number used on the website to be monitored.
- itokenfilename = 'imonit.token'
- Name of the local file holding the token information.
- lastentry = \listener . 'lastentry.php'
- This is the microservice for retrieving the last id of a particular call.
- listener = 'http://' . \imonit_server . '/'
- This URL used by the central i-mon-it tracking service to fire monitoring and administrative requests.
- local_server = '.i-mon-it.local'
- This is the name of the i-mon-it website.
- mid = \listener . 'mid.php'
- URL for the mid service.
- midpage = \listener . '/midpage.php'
- URL for the midpage service.
- ping = \listener . 'ping.php'
- This URL is used to create the ping Microservice of the system.
- start = \listener . 'start.php'
- this is the URL used to send the monitoring request for the start.
- startpage = \listener . 'startpage.php'
- This is the URL for the startpage service.
- ua = \listener . 'UA.php'
- This is the URL base for retrieving the Useragent id.
Constants
checktoken
URL for the verifytoken service
public
string
checktoken
= \listener . '/checktoken.php'
URL for the verifytoken service
Tags
count
URL for the ecount service.
public
string
count
= \listener . 'count.php'
URL for the count Service
Tags
end
URL for the end service.
public
string
end
= \listener . 'end.php'
URL for the end Service
Tags
endpage
URL for the endpage service.
public
string
endpage
= \listener . '/endpage.php'
URL for the endpage service
Tags
imonit_server
public
mixed
imonit_server
= 'server.i-mon-it.de'
itoken
This is the name of the session variable holding information about the token number used on the website to be monitored.
public
mixed
itoken
= 'token'
you
itokenfilename
Name of the local file holding the token information.
public
string
itokenfilename
= 'imonit.token'
Name of the tokenfile holding the correct information.
lastentry
This is the microservice for retrieving the last id of a particular call.
public
string
lastentry
= \listener . 'lastentry.php'
listener
This URL used by the central i-mon-it tracking service to fire monitoring and administrative requests.
public
string
listener
= 'http://' . \imonit_server . '/'
Do not change the value of the constant.
URL used the fire monitoring and administrative requests to the i-mon-it service.
local_server
This is the name of the i-mon-it website.
public
string
local_server
= '.i-mon-it.local'
name of the i-mon-it website
mid
URL for the mid service.
public
string
mid
= \listener . 'mid.php'
Urlfor the mid service
Tags
midpage
URL for the midpage service.
public
string
midpage
= \listener . '/midpage.php'
URL for the endpage service
Tags
ping
This URL is used to create the ping Microservice of the system.
public
string
ping
= \listener . 'ping.php'
The Url of the Microservice reaching the ping Microservice
Tags
start
this is the URL used to send the monitoring request for the start.
public
string
start
= \listener . 'start.php'
URL start Service
Tags
startpage
This is the URL for the startpage service.
public
string
startpage
= \listener . 'startpage.php'
URL for the startpage service
Tags
ua
This is the URL base for retrieving the Useragent id.
public
string
ua
= \listener . 'UA.php'